from django.db import models

class Music(models.Model):
    music_id = models.AutoField(primary_key=True, null=False)
    music_name = models.CharField(max_length=1024, null=False)
    music_up = models.CharField(max_length=128, null=False)
    music_bv = models.CharField(max_length=32)
    music_release_time = models.DateTimeField()
    music_file_path = models.CharField(max_length=1024)
    music_image_path = models.CharField(max_length=1024)

    def __str__(self):
        return f'music_id: {self.music_id}, music_name: {self.music_name}'